
#ifndef __CE_GEOMETRYLOADER_H__
#define __CE_GEOMATRYLOADER_H__

#include <cegame/ceexport.h>
#include <cegfx/igeometry.h>
#include <cegfx/cerendermesh.h>
#include <cecore/ifile.h>
#include <cexml/cexml.h>
#include <d3d9.h>


class CE_GAME_API ceGeometryLoader 
{
private:
	LPDIRECT3DDEVICE9	device;

  ceGeometryLoader ();

	static ceGeometryLoader*	static_instance;

	ceRenderMesh* LoadRenderMesh (ceXmlElement elem);
public:
	static ceGeometryLoader* Get ();

	void Initialize (LPDIRECT3DDEVICE9 device);

	iGeometry* Load (iFile* file);
	ceRenderMesh* LoadRenderMesh (iFile* file);

};

#endif /* ! __CE_GEOMETRYLOADER_H__ */ 

